<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>
		<script type="text/javascript">
			var obj = {
				"one": {
					name: '张三',
					age: 18
				},
				"two": {
					name: '李四',
					age: 18
				}

			};
			//			for(var i in obj){
			//				console.log(i+"  "+obj[i].name);
			//			}
			var params = {
				'a': 1,
				'b': 2,
			};
			for(var i in params) {
				console.log(i+"  "+params[i]);
			}
		</script>
	</body>

</html>